// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './vuex'

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  //template里面只能有子标签,且有template
  template: '<App/>',
  //这样写法也行      new Vue({ el: '#app', components: { App } });
  //页面里引入 <div id="app"><app></app></div>
  
  //components: { App },template: '<App/>'配合使用
  //与单独使用render:h=>h(App)等价于render:function(h){return h(App);}会达到同样的效果
  //　前者识别<template>标签，后者直接解析template下的id为app的div(忽略template的存在)
})
